package cvo.chess.client.util;

import cvo.chess.client.entities.chessboard.IChessboardCoordinate;
import cvo.chess.client.entities.game.IChessboard;

public class BoardUtil {
	
	public static boolean isValidPositionOnBoard(IChessboard board, IChessboardCoordinate coodinate){
		//See if position is on board
		if(coodinate.getRow() >= 0 &&
				coodinate.getRow() < board.getHeight() &&
				coodinate.getCol() >= 0 &&
				coodinate.getCol() < board.getWidth()){
			return true;
		}
		return false;
	}

}
